<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>数据管理</title>
<link href="<%=request.getContextPath() %>/images/css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableline" id="Table1">
    <tr>
      <td colspan="3" align="center" bgcolor="#cccccc"></td>
    </tr>
    <tr>
      <td height="40" colspan="3" align="center" bgcolor="#ffffff"><font face="宋体" class="STYLE4">报名数据库导入导出</font></td>
    </tr>
    <tr>
      <td width="21%" height="26" align="right" bgcolor="#ffffff">导出已交费确认报名数据表：</td>
      <td width="56%" bgcolor="#ffffff">&nbsp;
        <a href="<%=request.getContextPath() %>/dataIO.do?method=buildDBF">导出报名表</a>
      </td>
    </tr>

    <tr>
      <td width="21%" height="26" align="right" bgcolor="#ffffff">导出未交费报名数据表：</td>
      <td width="56%" bgcolor="#ffffff">&nbsp;
        <a href="<%=request.getContextPath() %>/dataIO.do?method=buildNoPaidDBF">导出报名表</a>
      </td>
    </tr>
     
    <html:form action="dataIO.do?method=readWbhDBF" enctype="multipart/form-data" method="post" >
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">导入已交费学生报名表并确认信息：</td>
      <td bgcolor="#ffffff"><html:file property="file" />&nbsp;&nbsp;&nbsp; <html:submit value="导入" />&nbsp;&nbsp;
      <c:if test="${!empty fileEmptyError || !empty fileFormatError}">
			<img src="images/error.png" width="15" height="15" />&nbsp;<font color="red">${fileEmptyError} ${fileFormatError }</font>			
	  </c:if>
	  <font color="red">${readWbhDBFSuccess }</font>
      </td>
    </tr>
	</html:form>
	
 	<html:form action="dataIO.do?method=readDBF" enctype="multipart/form-data" method="post" >
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">导入考生准考证号：</td>
      <td bgcolor="#ffffff"><html:file property="file" />&nbsp;&nbsp;&nbsp; <html:submit value="导入" />&nbsp;&nbsp;
      <c:if test="${!empty fileEmptyError || !empty fileFormatError}">
			<img src="images/error.png" width="15" height="15" />&nbsp;<font color="red">${fileEmptyError} ${fileFormatError }</font>			
	  </c:if>
	  <font color="red">${readDBFSuccess }</font>
      </td>
    </tr>
    </html:form>
    
    <html:form action="gradeAdmin.do?method=fileGradeDBF" enctype="multipart/form-data" method="post" >
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">导入考生成绩表：</td>
      <td bgcolor="#ffffff"><html:file property="file" />&nbsp;&nbsp;&nbsp; <html:submit value="导入" />&nbsp;&nbsp;
      <c:if test="${!empty fileGradeDBFEmptyError || !empty fileGradeDBFFormatError ||!empty fileGradeDBFError }" >
			<img src="images/error.png" width="15" height="15" />&nbsp;<font color="red">${fileGradeDBFEmptyError} ${fileGradeDBFFormatError }${fileGradeDBFError }</font>			
	  </c:if>
	  <font color="red">${fileGradeDBFSuccess }</font>
      </td>
    </tr>
    </html:form>
    
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">压缩报名相片：</td>
      <td bgcolor="#ffffff"> &nbsp;
      	<a href="<%=request.getContextPath() %>/dataIO.do?method=zipPhoto">导出压缩相片</a>
      	&nbsp;&nbsp;<font color="red">（导出完毕后，服务器上的所有相片将会别清空，请慎用！）</font>
      </td>
    </tr>
    
    <tr>
      <td height="26" colspan="3" bgcolor="#ffffff"><p><font face="宋体" class="red14">注意:<br />
        </font><font face="宋体">1.请先点<span class="tabletext">导出</span>,才可以下载,导出的格式为ZIP数据包，可以直接导入到考务系统。<br />
          2.<span class="tabletext">压缩报名相片</span>，压缩photo/文件夹下所有报名学生上传的相片，压缩完会提示下载，如果相片较多，可能比较慢，请等待命令执行完毕。<br />
          3.导入成绩表的时候,请先打开考务系统，把最新cjk.dbf导出来,然后选择<span class="tabletext">浏览</span>、<span class="tabletext">上传</span>,最后才可以点<span class="tabletext">导入</span>。<br />
          4.<span class="tabletext">导入上次报名表</span>主要用来关联成绩查询时的考生姓名和身份证号及在考生报名补考的时可以自动匹配原准考证号。</font></p></td>
    </tr>
  </table>
</body>
</html>